package com.ruoyi.degree.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.degree.mapper.BizSchoolsDepartmentMapper;
import com.ruoyi.degree.domain.BizSchoolsDepartment;
import com.ruoyi.degree.service.IBizSchoolsDepartmentService;

/**
 * 院系管理Service业务层处理
 * 
 * @author Polly
 * @date 2025-08-20
 */
@Service
public class BizSchoolsDepartmentServiceImpl implements IBizSchoolsDepartmentService 
{
    @Autowired
    private BizSchoolsDepartmentMapper bizSchoolsDepartmentMapper;

    /**
     * 查询院系管理
     * 
     * @param id 院系管理主键
     * @return 院系管理
     */
    @Override
    public BizSchoolsDepartment selectBizSchoolsDepartmentById(Long id)
    {
        return bizSchoolsDepartmentMapper.selectBizSchoolsDepartmentById(id);
    }

    /**
     * 查询院系管理列表
     * 
     * @param bizSchoolsDepartment 院系管理
     * @return 院系管理
     */
    @Override
    public List<BizSchoolsDepartment> selectBizSchoolsDepartmentList(BizSchoolsDepartment bizSchoolsDepartment)
    {
        return bizSchoolsDepartmentMapper.selectBizSchoolsDepartmentList(bizSchoolsDepartment);
    }

    /**
     * 新增院系管理
     * 
     * @param bizSchoolsDepartment 院系管理
     * @return 结果
     */
    @Override
    public int insertBizSchoolsDepartment(BizSchoolsDepartment bizSchoolsDepartment)
    {
        return bizSchoolsDepartmentMapper.insertBizSchoolsDepartment(bizSchoolsDepartment);
    }

    /**
     * 修改院系管理
     * 
     * @param bizSchoolsDepartment 院系管理
     * @return 结果
     */
    @Override
    public int updateBizSchoolsDepartment(BizSchoolsDepartment bizSchoolsDepartment)
    {
        return bizSchoolsDepartmentMapper.updateBizSchoolsDepartment(bizSchoolsDepartment);
    }

    /**
     * 批量删除院系管理
     * 
     * @param ids 需要删除的院系管理主键
     * @return 结果
     */
    @Override
    public int deleteBizSchoolsDepartmentByIds(Long[] ids)
    {
        return bizSchoolsDepartmentMapper.deleteBizSchoolsDepartmentByIds(ids);
    }

    /**
     * 删除院系管理信息
     * 
     * @param id 院系管理主键
     * @return 结果
     */
    @Override
    public int deleteBizSchoolsDepartmentById(Long id)
    {
        return bizSchoolsDepartmentMapper.deleteBizSchoolsDepartmentById(id);
    }
}
